﻿<navigation:Page x:Class="Wintellect.Touch.GestureServicePage" 
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
                 xmlns:Touch="clr-namespace:Wintellect.Touch;assembly=Wintellect.Touch" 
                 mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
                 Title="GestureServicePage Page">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid x:Name="RectangleRegion" Grid.Row="0">
            <Rectangle Fill="Blue" Width="200" Height="200">
                <Touch:GestureService.GestureListener>
                    <Touch:GestureListener 
                        Tap="GestureListener_Tap" 
                        DragStarted="GestureListener_DragStarted" 
                        DragDelta="GestureListener_DragDelta"
                        DragCompleted="GestureListener_DragCompleted"
                        DoubleTap="GestureListener_DoubleTap"
                        Hold="GestureListener_Hold"/>
                        <!--SimplePinchStarted="GestureListener_SimplePinchStarted"
                        SimplePinchDelta="GestureListener_SimplePinchDelta"
                        SimplePinchCompleted="GestureListener_SimplePinchCompleted"-->
                </Touch:GestureService.GestureListener>
            </Rectangle>
        </Grid>
        <Grid x:Name="StatusRegion" Grid.Row="1">
            <ListBox x:Name="ResultsList" Height="150">
                <i:Interaction.Behaviors>
                    <Touch:ListBoxTouchScrollBehavior/>
                </i:Interaction.Behaviors>
            </ListBox>
        </Grid>
    </Grid>
</navigation:Page>
